package com.rkc.component;

import com.rkc.vo.PayInfoVO;

/**
 * @author `RKC`
 * @date 2022/3/6 14:33
 */
public interface PayStrategy {

    /**
     * 下单
     * @param payInfoVO
     * @return
     */
    String unifiedOrder(PayInfoVO payInfoVO);

    /**
     * 退款
     * @param payInfoVO
     * @return
     */
    default String refund(PayInfoVO payInfoVO) {
        return "";
    }

    /**
     * 查询支付状态
     * @param payInfoVO
     * @return
     */
    default String queryPayState(PayInfoVO payInfoVO) {
        return "";
    }
}
